package mypackage;
import java.rmi.*;

public class AddClient {
  public static void main(String args[]) {
    try {
      
      String addServerURL = "rmi://" + args[0] + "/AddServer";
      System.out.println("I will connected to: " + addServerURL);
      AddServerIntf addServerIntf =
                    (AddServerIntf)Naming.lookup(addServerURL);
      System.out.println("The sum is: " + addServerIntf.send(args[1]));
      System.out.println("The augment is: " + args[1]);
    }
    catch(Exception e) {
      System.out.println("Exception: " + e);
    }
  }
}
